#ifndef TREENODE_H
#define TREENODE_H
#pragma once
#include<iostream>

using namespace std;

template<class T>
class TreeNode
{
public:
	T data;
	int color_tag;
	TreeNode* Right;
	TreeNode* Left;
	TreeNode* Parent;

public:
	TreeNode(T elem);
	~TreeNode();

};

template<class T>
inline TreeNode<T>::TreeNode(T elem) : data(data),color_tag(0),Right(NULL),Left(NULL),Parent(NULL)
{
	this->data = elem;
	this->color_tag = 1;
}

template<class T>
inline TreeNode<T>::~TreeNode()
{
}

#endif // !TREENODE_H